# coding: utf-8
'''
Created on 24 avr. 2011

@author: shin
'''

class DaoDamier():
    '''
    classdocs
    '''

    def __init__(self, nom): #@UnusedVariable
        '''
        Constructor
        '''
        self.height = 1
        self.width = 1
        self.terrainType = {}

        if (nom == "niveau1"):
            self.height = 8
            self.width = 10
            self.terrainType = {\
                "A1":"Herbe" , "B1":"Herbe" , "C1":"Herbe" , "D1":"Herbe", "E1":"Rocher", "F1":"Herbe" , "G1":"Herbe" , "H1":"Herbe", "I1":"Herbe" , "J1":"Herbe" , 
                "A2":"Herbe" , "B2":"Herbe" , "C2":"Herbe" , "D2":"Herbe", "E2":"Sable" , "F2":"Sable" , "G2":"Sable" , "H2":"Herbe", "I2":"Herbe" , "J2":"Herbe" ,
                "A3":"Herbe" , "B3":"Herbe" , "C3":"Herbe" , "D3":"Herbe", "E3":"Sable" , "F3":"Sable" , "G3":"Sable" , "H3":"Herbe", "I3":"Herbe" , "J3":"Herbe" ,
                "A4":"Herbe" , "B4":"Herbe" , "C4":"Herbe" , "D4":"Sable", "E4":"Sable" , "F4":"Sable" , "G4":"Rocher", "H4":"Herbe", "I4":"Herbe" , "J4":"Herbe" ,
                "A5":"Herbe" , "B5":"Herbe" , "C5":"Eau"   , "D5":"Eau"  , "E5":"Eau"   , "F5":"Herbe" , "G5":"Herbe" , "H5":"Herbe", "I5":"Herbe" , "J5":"Herbe" ,
                "A6":"Eau"   , "B6":"Eau"   , "C6":"Eau"   , "D6":"Eau"  , "E6":"Eau"   , "F6":"Herbe" , "G6":"Herbe" , "H6":"Herbe", "I6":"Rocher", "J6":"Rocher",
                "A7":"Eau"   , "B7":"Eau"   , "C7":"Eau"   , "D7":"Eau"  , "E7":"Herbe" , "F7":"Herbe" , "G7":"Herbe" , "H7":"Herbe", "I7":"Rocher", "J7":"Rocher",
                "A8":"Eau"   , "B8":"Eau"   , "C8":"Herbe" , "D8":"Herbe", "E8":"Herbe" , "F8":"Herbe" , "G8":"Herbe" , "H8":"Herbe", "I8":"Rocher", "J8":"Rocher"
                }
        
        if (nom == "niveau2"):
            self.height = 6
            self.width = 12
            self.terrainType = {\
                "A1":"Neige" , "B1":"Neige" , "C1":"Neige" , "D1":"Neige", "E1":"Neige", "F1":"Neige" , "G1":"Neige" , "H1":"Neige", "I1":"Neige" , "J1":"Neige" , "K1":"Neige", "L1":"Neige",
                "A2":"Neige" , "B2":"Rocher", "C2":"Rocher", "D2":"Neige", "E2":"Neige", "F2":"Neige" , "G2":"Neige" , "H2":"Arbre", "I2":"Rocher", "J2":"Neige" , "K2":"Neige", "L2":"Neige",
                "A3":"Neige" , "B3":"Neige" , "C3":"Arbre" , "D3":"Neige", "E3":"Glace", "F3":"Glace" , "G3":"Glace" , "H3":"Neige", "I3":"Neige" , "J3":"Neige" , "K3":"Neige", "L3":"Neige",
                "A4":"Neige" , "B4":"Neige" , "C4":"Neige" , "D4":"Neige", "E4":"Neige", "F4":"Glace" , "G4":"Glace" , "H4":"Glace", "I4":"Neige" , "J4":"Neige" , "K4":"Neige", "L4":"Neige",
                "A5":"Neige" , "B5":"Neige" , "C5":"Neige" , "D5":"Neige", "E5":"Neige", "F5":"Neige" , "G5":"Neige" , "H5":"Neige", "I5":"Neige" , "J5":"Rocher", "K5":"Neige", "L5":"Neige",
                "A6":"Neige" , "B6":"Neige" , "C6":"Neige" , "D6":"Neige", "E6":"Neige", "F6":"Neige" , "G6":"Neige" , "H6":"Neige", "I6":"Neige" , "J6":"Neige" , "K6":"Neige", "L6":"Neige",
                }
        
        
        
        
        
        
        
        
        
        